<div class="fotoeventsBox">
 <?php echo $this->headerBanner($this->baseUrl, '/public/images/foto_text.png', '/public/images/relacje_text.png', 'Foto', 'relacje'); ?>
</div>
<h1 class="fotoeventheader">
 <img src="<?php echo $this->baseUrl.'/public/images/arrow_small.jpg'; ?>" alt="Najskuteczniejsza szkoła jazdy w Bydgoszczy w rankingu WORD" style="padding-bottom: 2px; padding-right: 1px;"/>
  <?php echo $this->fotoeventsTitle; ?>
</h1>
<div class="fotoeventslinkscontainer">
<?php 
	foreach ($this->articleLinks as $key=>$articleLink) {
?>
 <span><?php echo $key; ?></span>
 <a class="boldText1" href="<?php echo $articleLink;?>" title="Przejdź do artykułu" target="_blank">link</a>
 <br/>
<?php
	}
?>
</div>

<div class="fotoeventscontainer">
<?php
$imgdirname = $this->baseUrl.'/public/images/fotoevents/'.$this->fc;
$dirname = $_SERVER['DOCUMENT_ROOT'].$imgdirname;

$diter = new DirectoryIterator($dirname);

foreach ($diter as $filename) {
	if ($filename->isFile()) {
		$imgfile = $imgdirname.'/'.$filename;
		$imageSize = Sosweb_Util_Image::getResizedSize($imgfile, 266);
?>
<div class="fotothumb">
 <a class="fancyImg" href="<?php echo $imgfile; ?>" title="Zobacz obraz w pełnym rozmiarze">
  <img src="<?php echo $imgfile; ?>" width="<?php echo $imageSize['width']; ?>" height="<?php echo $imageSize['height']; ?>"/>
 </a>
</div>
<?php 	
	}	
}
?>
 <div style="clear: both;"></div>
</div>